﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMITDomain.Entities;

namespace MMITDomain.Abstract
{
    public interface ITransactionRepository
    {
        IQueryable<Transaction> Transactions
        {
            get;
        }

        void SaveTransaction(Transaction objTransaction);
        //void DeleteTransaction(Transaction objTransaction);
        Transaction GetTransactionById(int iTransactionId);
        IQueryable<Transaction> GetCustomerTransactions(Customer objCustomer);
        IQueryable<Transaction> GetTransactionsByType(TransactionType objType);
        Transaction GetTransactionByCode(string strTransactionCode);
    }
}
